package java_常用api;

public class API_6_递归2 {
    public static void main(String[] args) {
        int x = 10;
        int cum_cheng   = cumx(x);
        System.out.println(cum_cheng);
    }

    private static int cumx(int x) {
        if (x == 1 ){
            return 1;
        }

        else {
            return x*cumx(x-1);
        }
    }
}
